package com.app.common_app.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @author zhangzy
 * @TableName user
 * @description user表对应实体类
 */
@TableName(value = "user")
@Data
public class User implements Serializable {
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
    /**
     * ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 手机号
     */
    @TableField(value = "phone_number")
    private String phoneNumber;
    /**
     * 密码
     */
    @TableField(value = "password")
    private String password;
    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;
    /**
     * 修改时间
     */
    @TableField(value = "modify_time", fill = FieldFill.INSERT_UPDATE)
    private Date modifyTime;
    /**
     * 逻辑删除（0-未删除 1-已删除）
     */
    @TableField(value = "is_deleted")
    @TableLogic(value = "0", delval = "1")
    private String isDeleted;
    /**
     * 头像
     */
    @TableField(value = "avatar")
    private String avatar;
}